﻿using Cysharp.Threading.Tasks;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 玩家实体类，管理所有该实体挂载的脚本
/// </summary>
public class PlayerEntity : UnitEntityBase
{
    protected override UnitControllerBase GetController() => new PlayerController();

    protected override FSMBase GetFSM() => new PlayerFSM();

    protected override UnitAttributeBase GetAttribute() => new PlayerAttribute();

    protected override SkillManagerBase GetSkillManager() => new PlayerSkillManager();


    protected override void OnDespawn()
    {
        base.OnDespawn();
        MessageBox.ShowOK("你死了", "点击确认后在复活点复活", "复活", SceneOrganizer.instance.GetPlayerSpawner().Respawn);
    }
}